package prv.creational.abstractFactory;

public class Demo {
	public static void main(String[] args) {
		new Application(createOsSpecificFactory());
	}

	public static GUIFactory createOsSpecificFactory() {
		int sys = 1;
//		int sys = readFromConfigFile("OS_TYPE");
		if (sys == 0)
			return new WinFactory();
		else
			return new OSXFactory();
	}
}
